package com.spring.ioc.demo.service.impl;

import com.spring.ioc.demo.dao.UserDao;
import com.spring.ioc.demo.domain.User;
import com.spring.ioc.demo.service.UserService;

import java.util.List;
import java.util.Map;

public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public List<User> queryUsers(Map<String, Object> param) {
        return userDao.queryUsers(param);
    }
}
